package com.bdqn.serice.impl;

import com.bdqn.serice.SmbmsRoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.pojo.SmbmsRole;
import com.bdqn.mapper.SmbmsRoleMapper;

import java.util.List;

@Service
public class SmbmsRoleServiceImpl implements SmbmsRoleService {

    @Resource
    private SmbmsRoleMapper smbmsRoleMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return smbmsRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SmbmsRole record) {
        return smbmsRoleMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(SmbmsRole record) {
        return smbmsRoleMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(SmbmsRole record) {
        return smbmsRoleMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(SmbmsRole record) {
        return smbmsRoleMapper.insertSelective(record);
    }

    @Override
    public SmbmsRole selectByPrimaryKey(Long id) {
        return smbmsRoleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SmbmsRole record) {
        return smbmsRoleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SmbmsRole record) {
        return smbmsRoleMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SmbmsRole> getRoleList() throws Exception {
        return smbmsRoleMapper.getRoleList();
    }

}
